<tagLib name="lbase"/>
<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="utf-8">
        <title>微信公众平台营销管理系统</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
    <include file='Public:header' />
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="__ROOT__/public/js/html5shiv.js"></script>
    <![endif]-->
</head>

<body>
    <!--nav-->
<include file='Public:nav' />

<div class="container">
    <div class="page-header"><h4>秒杀商品兑换</h4></div>
    <div class="row">
        <div class="span12">
            <div class="pull-left">
                <a href="{:U('/'.$module_name.'/duihuan')}" class="btn btn-primary">返回兑换其他秒杀兑换码</a>&nbsp;&nbsp;
            </div>
        </div>
    </div>
    <div class="row">
        <div class="span12" style="margin-top:10px;">
            <form class="form-horizontal" method="post" action="{:U('/'.$module_name.'/duihuan_action')}">
                <fieldset>
                    <div id="legend" class="">
                        <legend class=""></legend>
                    </div>
                    <php>if(!empty($goods_info)){</php>
                    <div id="legend" class="">
                        <legend class="">秒杀信息</legend>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">微信识别码</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$weixin_id}
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="input01">秒杀时间</label>
                        <div class="controls" style="margin-top: 5px;">
                            {:get_date_full($create_time)}
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="input01">商品兑换码</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$code}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">兑换截止时间</label>
                        <div class="controls" style="margin-top: 5px;">
                            {:get_date_full($goods_info['exchange_stop_time'])}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">兑换状态</label>
                        <div class="controls" style="margin-top: 5px;">
                            <php>if($status==0) echo '未兑换'; else echo '已经兑换';</php>
                        </div>
                    </div>
                    <div id="legend" class="">
                        <legend class="">商品信息</legend>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">秒杀活动名称</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$goods_info.goods_title}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">商品名称</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$goods_info.goods_name}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">商品原价</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$goods_info.goods_cost_price}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">秒杀价格</label>
                        <div class="controls" style="margin-top: 5px;color:red;">
                            {$goods_info.goods_price}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">活动开始时间</label>
                        <div class="controls" style="margin-top: 5px;">
                            {:get_date_full($goods_info['begin_time'])}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">活动结束时间</label>
                        <div class="controls" style="margin-top: 5px;">
                            {:get_date_full($goods_info['stop_time'])}
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">商品备注</label>
                        <div class="controls" style="margin-top: 5px;">
                            {$goods_info.remark}
                        </div>
                    </div>
                    <div id="legend" class="">
                        <legend class="">填写客户信息</legend>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">用户姓名</label>
                        <div class="controls">
                            <input type="text" placeholder="" class="input-xlarge" name="user_name">
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label" for="input01">联系电话</label>
                        <div class="controls">
                            <input type="text" placeholder="" class="input-xlarge" name="user_telephone">
                            <p class="help-block"></p>
                        </div>
                    </div>

                    <div class="form-actions">
                        <input name="id" type="hidden" value="{$id}">
                        <button type="submit" class="btn btn-primary">确认兑换</button>
                    </div>
                    <php>}else{
                        echo '该兑换码不存在或者已经兑换！';
                        }</php>
                </fieldset>
            </form>
        </div>
    </div>
</div>
</div>
<include file='Public:footer' />
</body>
</html>
